package Task;

public class Rect extends Shape{
    private double length;
    private double width;

    public Rect(double length, double width) {
        this.length = length;
        this.width = width;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    void methodA() {

    }

    @Override
    public void methodB() {

    }

    @Override
    void draw() {
        System.out.println("矩形: length= "+length+" width= " + width);

    }
}
